package tothreedesignmodel.chainreponsibility;

/**
 * @author lzhphantom
 * @description
 * @date 创建于 21:40 2020/8/1
 * @modified
 */
public class ConcreteHandler2 extends AbstractHandler {
    private static final String TWO = "two";

    @Override
    public void handleRequest(String request) {
        if (TWO.equals(request)) {
            System.out.println("do two");
        } else {
            if (getNext() != null) {
                getNext().handleRequest(request);
            } else {
                System.out.println("none");
            }
        }
    }
}
